package com.example.tse.rbhttpservice.service.moments.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.moments.model.MomentsHomeGetRecommendListMoments;
/**
 * 点击首页的达人推荐进入，显示所有推荐给当前用户达人列表，对于所有用户推荐数据都是相同
 * @author wliu
 * edit tse
 */
public class MomentsHomeGetRecommendList extends RudderResponse{
    
    private String memberId = "";
		
    
    private String nickname = "";
		
    
    private String avatar = "";
		
    
    private String desc = "";
		
    
    private String isNoticed = "";
		
    
    private List<MomentsHomeGetRecommendListMoments> moments = new ArrayList<MomentsHomeGetRecommendListMoments>();
		
	
    /**
     * @return memberId
     */	
    public String getMemberId() { 
	    return this.memberId;
    };
	
	/**
     * @return memberId
     */	
    public void setMemberId(String memberId) { 
        this.memberId = memberId;
    };
    
    /**
     * @return nickname
     */	
    public String getNickname() { 
	    return this.nickname;
    };
	
	/**
     * @return nickname
     */	
    public void setNickname(String nickname) { 
        this.nickname = nickname;
    };
    
    /**
     * @return avatar
     */	
    public String getAvatar() { 
	    return this.avatar;
    };
	
	/**
     * @return avatar
     */	
    public void setAvatar(String avatar) { 
        this.avatar = avatar;
    };
    
    /**
     * @return desc
     */	
    public String getDesc() { 
	    return this.desc;
    };
	
	/**
     * @return desc
     */	
    public void setDesc(String desc) { 
        this.desc = desc;
    };
    
    /**
     * @return isNoticed
     */	
    public String getIsNoticed() { 
	    return this.isNoticed;
    };
	
	/**
     * @return isNoticed
     */	
    public void setIsNoticed(String isNoticed) { 
        this.isNoticed = isNoticed;
    };
    
    /**
     * @return moments
     */	
    public List<MomentsHomeGetRecommendListMoments> getMoments() { 
	    return this.moments;
    };
	
	/**
     * @return moments
     */	
    public void setMoments(List<MomentsHomeGetRecommendListMoments> moments) { 
        this.moments = moments;
    };
    
	
        
    private static void filterFor(MomentsHomeGetRecommendListMoments moments) {
        if (moments.getMomentId() == null) {
            moments.setMomentId("");
        }
        if (moments.getMainPic() == null) {
            moments.setMainPic("");
        }
    }
        
    public static void filter(MomentsHomeGetRecommendList moments) {
        if (moments.getMemberId() == null) {
            moments.setMemberId("");
        }
        if (moments.getNickname() == null) {
            moments.setNickname("");
        }
        if (moments.getAvatar() == null) {
            moments.setAvatar("");
        }
        if (moments.getDesc() == null) {
            moments.setDesc("");
        }
        if (moments.getIsNoticed() == null) {
            moments.setIsNoticed("");
        }
        if (moments.getMoments() == null) {
            moments.setMoments(new ArrayList<MomentsHomeGetRecommendListMoments>());
        } else {
            for (MomentsHomeGetRecommendListMoments item : moments.getMoments()) {
                filterFor(item);
            }
        }
    }
}
